package com.qingyun.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 学生表
 * </p>
 *
 * @author your_name
 * @since 2025-08-23
 */
@Getter
@Setter
@TableName("tb_student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    /**
     * 年级
     */
    @TableField("grade")
    private String grade;

    /**
     * 学号/唯一编码（当前表无此列）
     */
    @TableField(exist = false)
    private String code;

    @TableField("phone")
    private String phone;

    @TableField("guardian")
    private String guardian;

    @TableField("guardianPhone")
    private String guardianPhone;

    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("updateTime")
    private LocalDateTime updateTime;


}
